package com.itheima.practice.demo05;

public class FightFactory {
    //用Fight的多态来返回子类对象
    public static Fight getFight(){
            return new Robot();
    }

    public static InterFight getInterFight(){
        return new Human();
    }
}
